package com.example.api.mapper;

import com.example.api.pojo.Address;
import com.example.api.query.AddressQuery;
import com.example.api.vo.AddressVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AddressMapper {
    void add(Address address);

    List<AddressVO> find(AddressQuery addressQuery);

    AddressVO findById(long id);

    void update(Address address);

    @Delete("delete from t_address where id = #{id}")
    void deleteById(long id);

    Address chadizhi(Long customerId);

}